package com.example.demobase.sample.di;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class DiMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(DiConfig.class);
        UseFunctionService useFunctionService =
                context.getBean(UseFunctionService.class);
        System.out.println(useFunctionService.sayHello("熊二"));
        context.close();
    }
}
